package com.ming.Service.Impl;

import com.ming.Bean.Student;
import com.ming.Mapper.StudentMapper;
import com.ming.Service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author:weiming
 * @Date:2020/11/16
 */
@Component
public class StduentServiceImpl implements StudentService {

    @Autowired
    StudentMapper studentMapper;
    @Override
    public List<Student> getStduents() {
        return studentMapper.getStduents();
    }

    @Override
    public Student getStuById(int id) {
        return studentMapper.getStuById(id);
    }
}
